from django.shortcuts import render

# Create your views here.
from django.http import HttpResponse
from django.shortcuts import render

def runoob(request):
    context          = {}
    context['hello'] = 'Hello World!'
    return render(request, 'runoob.html', context)

def mql(request):
    view_name=['不要看见别人发光就觉得自己暗淡','哈哈哈','who I am?',0]
    import datetime
    #获取现在时间
    now = datetime.datetime.now()
    view_name.append(now)
    views_str = "<a href='https://www.runoob.com/'>点击跳转</a>"
    view_name.append(views_str)
    view_num=88
    view_name.append(view_num)
    views_dict = {"name1":"菜鸟教程","age":18}
    view_name.append(views_dict)
    return render(request,'runoob.html',{'name':view_name})


def runoobb(request):
    name = "菜鸟教程"
    return render(request, "stat.html", {"name": name})

def hello(request,username):
    return HttpResponse('Hellow'+username)